<div class="form-style">
    <h2>Sửa đề</h2>
    <?php
        echo $this->Form->create('Test');
        echo '<center>';
        if($test['Test']['subject_id'] == 1) {
            echo $this->Html->image('subjects/toan-hoc.gif');
        }
        if($test['Test']['subject_id'] == 2) {
            echo $this->Html->image('subjects/vat-ly.gif');
        }
        if($test['Test']['subject_id'] == 3) {
            echo $this->Html->image('subjects/hoa-hoc.gif');
        }
        if($test['Test']['subject_id'] == 4) {
            echo $this->Html->image('subjects/sinh-hoc.gif');
        }
        if($test['Test']['subject_id'] == 5) {
            echo $this->Html->image('subjects/ngu-van.gif');
        }
        if($test['Test']['subject_id'] == 6) {
            echo $this->Html->image('subjects/lich-su.gif');
        }
        if($test['Test']['subject_id'] == 7) {
            echo $this->Html->image('subjects/dia-ly.gif');
        }
        if($test['Test']['subject_id'] == 8) {
            echo $this->Html->image('subjects/tieng-anh.gif');
        }
        if($test['Test']['subject_id'] == 9) {
            echo $this->Html->image('subjects/tin-hoc.gif');
        }
        if($test['Test']['subject_id'] == 10) {
            echo $this->Html->image('subjects/cong-nghe.gif');
        }
        if($test['Test']['subject_id'] == 11) {
            echo $this->Html->image('subjects/khac.gif');
        }
        echo '</center>';
        if($test['Test']['subject_id'] == 3) {
            echo $this->Form->input('grade_id', array('label' => 'Khối lớp', 'type' => 'select', 'options' => array(
                                                                                                                    8 => 'Lớp 8',
                                                                                                                    9 => 'Lớp 9',
                                                                                                                    10 => 'Lớp 10',
                                                                                                                    11 => 'Lớp 11',
                                                                                                                    12 => 'Lớp 12'
                                                                                                                    ), 'default' => $test['Grade']['id']));
        } else {
            echo $this->Form->input('grade_id', array('label' => 'Khối lớp', 'type' => 'select', 'options' => array(
                                                                                                                    6 => 'Lớp 6',
                                                                                                                    7 => 'Lớp 7',
                                                                                                                    8 => 'Lớp 8',
                                                                                                                    9 => 'Lớp 9',
                                                                                                                    10 => 'Lớp 10',
                                                                                                                    11 => 'Lớp 11',
                                                                                                                    12 => 'Lớp 12'
                                                                                                                    ), 'default' => $test['Grade']['id']));
        }
        echo $this->Form->input('name', array('label' => 'Tên đề', 'size' => 50, 'value' => $test['Test']['name']));
        echo $this->Form->end('Lưu');
    ?>
</div>